CC=gcc
APP=cpo
PRJDIR=/mnt/hgfs/ShareDirHost/logical_control
OUTDIR=/mnt/hgfs/ShareDirHost/logical_control/bin
#PRJDIR=/mnt/hgfs/sharedir/logical_control
#OUTDIR=/mnt/hgfs/sharedir/logical_control/bin

INCLUDE= \
	-I${PRJDIR}/src/${APP} \
	-I${PRJDIR}/src/signal \
	-I${PRJDIR}/src/es_print \
	-I${PRJDIR}/src/pid \
	-I${PRJDIR}/src/list \
	-I${PRJDIR}/src

LIB=-lpthread -lmosquitto -ljson-c

EXE=bbbb

all:
	${CC} main.c \
	cpomqtt.c \
	cpoproc.c \
	cpofsm.c \
	cpodata.c \
	cpotimer.c \
	cpoprotocal.c \
	timer/timer.c \
	../pid/pid.c \
	../signal/thread_signal.c \
	${INCLUDE} \
	${LIB} \
	-Wall -g \
	-o cpo
